﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SportsPlatform.Application.Query.SportBusiness.Employee;
using SportsPlatform.Base;
using SportsPlatform.Dto.SportBusiness.Employee;
using SportsPlatform.Query.SportBusiness.Employee;

namespace SportsPlatform.WeChat.IWeChat
{
    /// <summary>
    /// 移动端登录/注册接口
    /// </summary>
    public interface ILoginService
    {
        /// <summary>
        /// 注册接口
        /// </summary>
        /// <param name="employeeRegisterQuery"></param>
        /// <returns></returns>
        public Task<BaseResultDto> EmployeeRegister(EmployeeRegisterQuery employeeRegisterQuery);

        /// <summary>
        /// 登录接口
        /// </summary>
        /// <param name="employeeLoginQuery"></param>
        /// <returns></returns>
        public Task<ResultDto<EmployeeDto>> EmployeeLogin(EmployeeLoginQuery employeeLoginQuery);

        /// <summary>
        /// 通过openId获取用户信息
        /// </summary>
        /// <param name="openId"></param>
        /// <returns></returns>
        Task<ResultDto<EmployeeDto>> GetByOpenId(GetOpenIdQuery query);

        /// <summary>
        /// 验证身份证号
        /// </summary>
        /// <param name="employeeId"></param>
        /// <returns></returns>
        Task<ResultDto<bool>> CheckIdNumber(Guid employeeId);
    }
}
